package edu.xpu.compute.recommend.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@Entity(name="SysBook")
@Table(name="SYS_BOOK")
public class SysBook {

	@Id
	private Long id;
	/*
	 * 图书名称
	 */
	private String name;
	/*
	 * 图书类型
	 */
	private String bookType;
	/*
	 * 图书条码号
	 */
	private String bookBarcodeNumber;
	/*
	 * 图书标准号
	 */
	private String bookStandardNumber;
	/*
	 * 馆藏地址
	 */
	private String libraryAddr;
	/*
	 * 作者
	 */
	private String author;
	/*
	 * 出版社
	 */
	private String publishingHouse;
	/*
	 * 价格
	 */
	private Float price;
	/*
	 * 索书号
	 */
	private String callNumber;
	/*
	 * ISBN号
	 */
	private String isbnNumber;
	/*
	 * 图书封面图片路径
	 */
	private String coverImagePath;
	private String originalFilename;
	private String coverthumbnailImagePath;
	private String suffixName;
	
	/*
	 * 图书创建时间
	 */
	private Date createDate;
	/*
	 * 图书简介
	 */
	@Column(length=2048)
	private String remarks;
	
	public SysBook(Long id, String name, String bookBarcodeNumber,
			String libraryAddr, String author, String publishingHouse,
			Float price, String callNumber, String isbnNumber, Date createDate) {
		super();
		this.id = id;
		this.name = name;
		this.bookBarcodeNumber = bookBarcodeNumber;
		this.libraryAddr = libraryAddr;
		this.author = author;
		this.publishingHouse = publishingHouse;
		this.price = price;
		this.callNumber = callNumber;
		this.isbnNumber = isbnNumber;
		this.createDate = createDate;
	}
	
}
